package com.geek.framework.study.config.microprofile.enums;

public enum ConfigSourceEnum {

    /**
     * ordinal 配置文件优先级
     */
    SYSTEM_CONFIG("system.config", 300),
    JAVA_CONFIG("java.config", 400),

    MICRO_PROFILE_DEFAULT_CONFIG("microprofile.config", 100),
    SERVLET_CONTEXT_CONFIG("servlet.context.config", 500),

    SERVLET_REQUEST_CONFIG("servlet.request.config", 600),
    ;

    private String name;

    private Integer ordinal;

    ConfigSourceEnum(String name, Integer ordinal) {
        this.name = name;
        this.ordinal = ordinal;
    }

    public String getName() {
        return name;
    }

    public Integer getOrdinal() {
        return ordinal;
    }
}
